<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改电表用电管理')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content" style="color: #0a2730">
        <form class="form-horizontal m" id="form-dianbiaorecord-edit" th:object="${busDianbiaorecord}">
            <input name="id" th:field="*{id}" type="hidden">
            <div class="form-group">
                <label class="col-sm-3 control-label">电表Id：</label>
                <div class="col-sm-8">
                    <input name="dbId" th:field="*{dbId}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">单位：</label>
                <div class="col-sm-8">
                    <input name="dbCompany" th:field="*{dbCompany}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">楼层：</label>
                <div class="col-sm-8">
                    <input name="dbBuilding" th:field="*{dbBuilding}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">时间：</label>
                <div class="col-sm-8">
                    <input name="dbtime" th:field="*{dbtime}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">用电量：</label>
                <div class="col-sm-8">
                    <input name="dbvalue" th:field="*{dbvalue}" class="form-control" type="text">
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var prefix = ctx + "system/dianbiaorecord";
        $("#form-dianbiaorecord-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-dianbiaorecord-edit').serialize());
            }
        }
    </script>
</body>
</html>
